package crud.service;

import crud.bean.Dept;
import crud.dao.DeptMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author Bai Xu
 * @Date 2021/8/7 21:17
 * @Version 1.0
 */
@Service
public class DeptService {
    @Autowired
    private DeptMapper deptMapper;
    public List<Dept> getDepts() {
        List<Dept> list = deptMapper.selectByExample(null);
        return list;
    }
}
